/**
 * Copyright (c) 2016 Lenovo Group
 * All Rights Reserved.
 * 
 * Project Name:assign-tracer
 * Create Time: 2016年1月21日 下午4:33:10
 */
package com.lenovo.lmrp.api.constant;

/**
 * @author songyz
 */
public enum SendType {

	GETUI(0,"个推"), SMS(1,"短信"), EMAIL(2,"邮件"), WEICHART(3,"微信");
	private int sendType;
	private String desc;

	private SendType(int sendType,String desc) {
		this.sendType = sendType;
		this.desc = desc ;
	}

	public int getSendType() {
		return sendType;
	}

	public static SendType getSendType(int sendType) {
		for (SendType st : SendType.values())
			if (st.getSendType() == sendType)
				return st;
		return null;
	}
}
